
import usePriceStore from '../../store/price';

const A = () => {
  const { price, addPrice, aaa, setBbb } = usePriceStore();
  console.log('price ===>', price);
  return (
    <div>
      <h1>A</h1>
      <h2>{price}</h2>
      <button onClick={() => addPrice(100)}>add</button>

      <br />
      <hr />
      <h1>
       <pre>{JSON.stringify(aaa)}</pre>
      </h1>
      <button onClick={() => setBbb()}>add</button>
    </div>
  );
};

export default A;